<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../../../common/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<sfa:mainTitle></sfa:mainTitle>
		<%@ include file="../../../common/meta.jsp"%>
		<style type="text/css">
input {
	border-bottom-width: 2px;
	border-left-width: 2px;
	border-right-width: 2px;
	border-top-width: 2px;
	color: #000000;
	font-family: use-lang-def;
	font-size: 15px;
	font-weight: 400;
	padding: 1px;
	text-align: default;
	text-indent: 0px;
	text-transform: none;
}
</style>

<script type="text/javascript">
function submitExcel() {
	var recvmobileno = $("#recvmobileno").val();
	var validdatetime = $("#validdatetime").val();
	var error = false;	 
	if (recvmobileno == '') {
		art.dialog( {
			icon : "error",
			content : "输入的内容不能为空!",
			lock : true,
			ok : true
		});
		return false;
	} else {
		var recvmoblie = recvmobileno.split("\n");
		var errorTag = false;
		if (recvmoblie.length != 1) {
			for (i = 0; i < recvmoblie.length - 1; i++) {
				if (recvmoblie[i].indexOf("\t") == -1) {
					errorTag = true;
					break;
				} else {
					var newArray = recvmoblie[i].split("\t");
					if (newArray.length != 3) {
						errorTag = true;
						break;
					}
					errorTag = false;
		 		
				}
			}
		} else {
			errorTag = true;
		}

	}
	if (errorTag) {
		art.dialog( {
			icon : "error",
			content : "你输入的格式不对!",
			lock : true,
			ok : true
		});
	}
	if (errorTag == false && error == false) {
		$("#fileUpload").submit();
	} else {
		return false;
	}
 
 
}
</script>
		<link rel="stylesheet" type="text/css"
			href="${path}/css/addnews/step1.css" id="step">
		<link rel="stylesheet" type="text/css" href="${path}/css/step/an.css">
	</head>
	<body id="master">
		<sfa:mainHeader></sfa:mainHeader>
		<div class="webpart3 contentarea">
			<div class="webpart-head">
				<div class="webpart-head-item">
					短信发送
				</div>
			</div>
			<div class="webpart-main">
				<div class="webpart-main-item" style="padding-top: 12px;">
					<div class="at_loc">
						<span class="now" style="width: 208px;" id="firstStep">输入发送信息</span>
						<span class="line_frist" id="firstStep_line"></span>
						<span style="width: 208px;" id="secondStep">结果校验</span>
						<span class="line" id="secondStep_line"></span>
						<span style="width: 208px;" id="thirdStep">提交成功</span>
						<span class="line_end" id="thirdStep_line"></span>
					</div>
					<form id="fileUpload" action="${path}/sms/index/info/"
						method="post">
						<table width="100%" cellpadding="0" cellspacing="0"
							style="margin-top: 15px;">
							<tr>
								<td>
									请严格按照右边的说明填入
								</td>
								<td>
									发送说明
								</td>

							</tr>
							<tr>
								<td width="30%">
									<textarea rows="6" cols="40" name="recvmobileno"
										id="recvmobileno" style="width: 250px; height: 200px;"
										wrap="off"></textarea>
									<div style="margin-top: 5px;">
									短信有效时间：
									<select id="validdatetime" name="validdatetime">
										<option value="5">5分钟</option>
										<option value="10">10分钟</option>
										<option value="20">20分钟</option>
										<option value="30">30分钟</option>
										<option value="60">60分钟</option>
										<option value="120">2小时</option>
										<option value="180">3小时</option>
										<option value="240">4小时</option>
										<option value="300">5小时</option>
										<option value="360">6小时</option>
										<option value="420">7小时</option>
										<option value="480">8小时</option>
										<option value="540">9小时</option>
										<option value="600">10小时</option>
									</select>
									<br/>
									 说明: 
									<font color="red"> 
									短信有效时间即：当前系统时间加上所选
									时间内的短信有效.例如现在11:00你选的是5分钟
									那么在11:05这段时间短信有效，超过有效时间短信就不会被发送了。
									</font>
									</div>
								</td>
								<td width="50%">
									<img alt="" src="${path}/images/bg_exp.png">
									<br />
									<font color="red" size="2px"> 打开excle按照 此图的样式输入 数据,然后复制
										<br /> </font>
									<font color="red" size="2px"> 被选中的部分 粘贴到文本框 </font>
									<br/>
									
								</td>

							</tr>
						</table>
					</form>
					<div style="margin-top: 6px;">
						<input type="button" class="linkbtn2" value="上一步"
							onclick="history.go(-1);" />
						<input type="button" onclick="submitExcel()" class="linkbtn2"
							value="下一步" />
					</div>
				</div>
				<div class="webpart-foot">
					<div class="webpart-foot-item">
					</div>
				</div>
			</div>
		</div>
		<sfa:mainFooter></sfa:mainFooter>
	</body>
</html>

